package hsr;

import java.util.ArrayList;

public class BinaryNode <T>{

	private BinaryNode<T> left = null;
	private BinaryNode<T> right = null;
	ArrayList<T> content;
	
	public BinaryNode(T content, BinaryNode<T> left, BinaryNode<T> right){
		this.content = new ArrayList<T>();
		this.content.add(content); 
		this.left = left;
		this.right = right;
	}
	
	public BinaryNode(T content){
		this(content,null,null);
	}
	
	public void setLeftNode(BinaryNode<T> node){
		this.left = node;
	}
	
	public void setRightNode(BinaryNode<T> node){
		this.right = node;
	}
	
	
	
	
	public BinaryNode<T> getLeftNode() {
		return left;
	}

	public BinaryNode<T> getRightNode() {
		return right;
	}

	public ArrayList<T> getContent(){
		return content;
	}
	
	
}
